/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bda.mediatheque.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *
 * @author samsung
 */
@Entity
@Table(name = "parametre")
@NamedQueries({
    @NamedQuery(name = "Parametre.findAll", query = "SELECT p FROM Parametre p")})
public class Parametre implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id @GeneratedValue(strategy=GenerationType.AUTO)
    @Basic(optional = false)
    @NotNull
    @Column(name = "parametreId")
    private Integer parametreId;
    @Size(max = 45)
    @Column(name = "nombreMaxItems")
    private String nombreMaxItems;
    @Size(max = 45)
    @Column(name = "nombreJourReservation")
    private String nombreJourReservation;
    @Size(max = 45)
    @Column(name = "penaliteParJour")
    private String penaliteParJour;

    public Parametre() {
    }

    public Parametre(Integer parametreId) {
        this.parametreId = parametreId;
    }

    public Integer getParametreId() {
        return parametreId;
    }

    public void setParametreId(Integer parametreId) {
        this.parametreId = parametreId;
    }

    public String getNombreMaxItems() {
        return nombreMaxItems;
    }

    public void setNombreMaxItems(String nombreMaxItems) {
        this.nombreMaxItems = nombreMaxItems;
    }

    public String getNombreJourReservation() {
        return nombreJourReservation;
    }

    public void setNombreJourReservation(String nombreJourReservation) {
        this.nombreJourReservation = nombreJourReservation;
    }

    public String getPenaliteParJour() {
        return penaliteParJour;
    }

    public void setPenaliteParJour(String penaliteParJour) {
        this.penaliteParJour = penaliteParJour;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (parametreId != null ? parametreId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Parametre)) {
            return false;
        }
        Parametre other = (Parametre) object;
        if ((this.parametreId == null && other.parametreId != null) || (this.parametreId != null && !this.parametreId.equals(other.parametreId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bda.mediatheque.dao.Parametre[ parametreId=" + parametreId + " ]";
    }
    
}
